import { Component, OnInit, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material';

@Component({
  selector: 'app-create-task',
  templateUrl: './create-task.component.html',
  styleUrls: ['./create-task.component.scss']
})
export class CreateTaskComponent implements OnInit {
  priorities = [{ label: "极其重要", value: 0 },
    { label: "重要", value: 1 },
    { label: "不大重要", value: 2 }]
  title = "";
  constructor(@Inject(MAT_DIALOG_DATA) private data) { }

  ngOnInit() {
    console.log(this.data);
    this.title = this.data.title;
  }

}
